package com.bridge.applets.config;

import com.bridge.common.pay.WXPay;
import com.bridge.common.pay.WXPayConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WXPayBeanConfig {

    @Autowired
    WXPayConfig wxPayConfig;

    @Bean
    public WXPay getWXPayConfig() throws Exception {
        return new WXPay(wxPayConfig);
    }
}
